package com.leyou.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.user.entity.Address;

import java.util.List;

/**
 * @author BaiZY on 2020/9/12.
 * @version 1.0
 */
public interface AddressService extends IService<Address> {
    boolean addAddress(Address address);

    List<Address> findAddress();

    boolean deleteAddress(Long userId, Long id);

    boolean updateDefault(Long userId, Long id);

    Address queryAddressById(Long id);

    boolean updateAddress(Address address);

    List<Address> findAddressByuserId();
}
